<template>
  <div>
    <component v-if="icon" :is="icon"></component>
    <Icon v-else :icon="icon" :size="size" />
  </div>
</template>

<script setup lang="ts">
interface IEcoIconProps {
  icon?: string
  size?: number | string
}

withDefaults(defineProps<IEcoIconProps>(), {
  icon: 'Menu',
  size: 16
})
</script>
